package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRepairOrderInfo;
import com.appkubes.mall.core.po.FintechRepairOrderInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRepairOrderInfoMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairOrderInfoSqlProvider.class, method="countByExample")
    long countByExample(FintechRepairOrderInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRepairOrderInfoSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRepairOrderInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_repair_order_info",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_repair_order_info (id, user_id, ",
        "user_name, order_no, ",
        "device_info, pre_price, ",
        "people_price, postage_price, ",
        "iem, repair_type, ",
        "receive_user_name, receive_user_phone, ",
        "receive_address, take_device_time, ",
        "approval_msg, `status`, ",
        "remark, create_time, ",
        "update_time)",
        "values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, ",
        "#{userName,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ",
        "#{deviceInfo,jdbcType=VARCHAR}, #{prePrice,jdbcType=DECIMAL}, ",
        "#{peoplePrice,jdbcType=DECIMAL}, #{postagePrice,jdbcType=DECIMAL}, ",
        "#{iem,jdbcType=VARCHAR}, #{repairType,jdbcType=VARCHAR}, ",
        "#{receiveUserName,jdbcType=VARCHAR}, #{receiveUserPhone,jdbcType=VARCHAR}, ",
        "#{receiveAddress,jdbcType=VARCHAR}, #{takeDeviceTime,jdbcType=VARCHAR}, ",
        "#{approvalMsg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ",
        "#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(FintechRepairOrderInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRepairOrderInfoSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRepairOrderInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairOrderInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="device_info", property="deviceInfo", jdbcType=JdbcType.VARCHAR),
        @Result(column="pre_price", property="prePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="people_price", property="peoplePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="postage_price", property="postagePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="iem", property="iem", jdbcType=JdbcType.VARCHAR),
        @Result(column="repair_type", property="repairType", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_user_name", property="receiveUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_user_phone", property="receiveUserPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_address", property="receiveAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="take_device_time", property="takeDeviceTime", jdbcType=JdbcType.VARCHAR),
        @Result(column="approval_msg", property="approvalMsg", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRepairOrderInfo> selectByExampleWithRowbounds(FintechRepairOrderInfoExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairOrderInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="device_info", property="deviceInfo", jdbcType=JdbcType.VARCHAR),
        @Result(column="pre_price", property="prePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="people_price", property="peoplePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="postage_price", property="postagePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="iem", property="iem", jdbcType=JdbcType.VARCHAR),
        @Result(column="repair_type", property="repairType", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_user_name", property="receiveUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_user_phone", property="receiveUserPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_address", property="receiveAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="take_device_time", property="takeDeviceTime", jdbcType=JdbcType.VARCHAR),
        @Result(column="approval_msg", property="approvalMsg", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRepairOrderInfo> selectByExample(FintechRepairOrderInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "id, user_id, user_name, order_no, device_info, pre_price, people_price, postage_price, ",
        "iem, repair_type, receive_user_name, receive_user_phone, receive_address, take_device_time, ",
        "approval_msg, `status`, remark, create_time, update_time",
        "from fintech_repair_order_info",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="device_info", property="deviceInfo", jdbcType=JdbcType.VARCHAR),
        @Result(column="pre_price", property="prePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="people_price", property="peoplePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="postage_price", property="postagePrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="iem", property="iem", jdbcType=JdbcType.VARCHAR),
        @Result(column="repair_type", property="repairType", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_user_name", property="receiveUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_user_phone", property="receiveUserPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="receive_address", property="receiveAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="take_device_time", property="takeDeviceTime", jdbcType=JdbcType.VARCHAR),
        @Result(column="approval_msg", property="approvalMsg", jdbcType=JdbcType.VARCHAR),
        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechRepairOrderInfo selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairOrderInfoSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRepairOrderInfo record, @Param("example") FintechRepairOrderInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairOrderInfoSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRepairOrderInfo record, @Param("example") FintechRepairOrderInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairOrderInfoSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRepairOrderInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_order_info
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_repair_order_info",
        "set user_id = #{userId,jdbcType=VARCHAR},",
          "user_name = #{userName,jdbcType=VARCHAR},",
          "order_no = #{orderNo,jdbcType=VARCHAR},",
          "device_info = #{deviceInfo,jdbcType=VARCHAR},",
          "pre_price = #{prePrice,jdbcType=DECIMAL},",
          "people_price = #{peoplePrice,jdbcType=DECIMAL},",
          "postage_price = #{postagePrice,jdbcType=DECIMAL},",
          "iem = #{iem,jdbcType=VARCHAR},",
          "repair_type = #{repairType,jdbcType=VARCHAR},",
          "receive_user_name = #{receiveUserName,jdbcType=VARCHAR},",
          "receive_user_phone = #{receiveUserPhone,jdbcType=VARCHAR},",
          "receive_address = #{receiveAddress,jdbcType=VARCHAR},",
          "take_device_time = #{takeDeviceTime,jdbcType=VARCHAR},",
          "approval_msg = #{approvalMsg,jdbcType=VARCHAR},",
          "`status` = #{status,jdbcType=INTEGER},",
          "remark = #{remark,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRepairOrderInfo record);
}